<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var name = "张三"
        function show(){
            console.log(this.name);
        }
        /* 函数正常调用的时候this指向 window */
        function go(){
            var name = "李四"
            show()
        }
        go()  // "张三"  // window.go()


        function go(){
            var name = "李四"
            console.log(this.name);  // window.name
        }
        go()  // "张三"  window.go()  
    </script>
</body>
</html>